Google Cloud adaptation


In [15]:
from google.colab import files

uploaded = files.upload()

for fn in uploaded.keys():
  print('User uploaded file "{name}" with length {length} bytes'.format(
      name=fn, length=len(uploaded[fn])))
  data = uploaded[fn]
  with open(fn, 'wb') as file:
   file.write(data)


Upload widget is only available when the cell has been executed in the current browser session. Please rerun this cell to enable.